<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>微信基本设置</title>
    <meta name="keywords" content="微信基本设置">
    <meta name="description" content="微信基本设置">

    <link rel="shortcut icon" href="favicon.ico"> <link href="{{laracvs_asset('admin/css/bootstrap.min.css?v=3.3.6')}}" rel="stylesheet">
    <link href="{{laracvs_asset('admin/css/font-awesome.css?v=4.4.0')}}" rel="stylesheet">
    <link href="{{laracvs_asset('admin/css/animate.css')}}" rel="stylesheet">
    <link href="{{laracvs_asset('admin/css/style.css?v=4.1.0')}}" rel="stylesheet">
    <link href="{{laracvs_asset('admin/js/plugins/layer/skin/layer.css')}}" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>微信基本设置</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">APP_ID：</label>
                            <div class="col-sm-8">
                                <input name="configname" value="wx" type="hidden">
                                <input id="appid" name="appid" value="{{laracvs('wx.appid')}}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">App_Secret：</label>
                            <div class="col-sm-8">
                                <input id="appsecret" name="appsecret" value="{{laracvs('wx.appsecret')}}" class="form-control" type="text" aria-required="true" aria-invalid="false" class="valid">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">AES_KEY：</label>
                            <div class="col-sm-8">
                                <input id="aeskey" name="aeskey" class="form-control" value="{{laracvs('wx.aeskey')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">TOKEN：</label>
                            <div class="col-sm-8">
                                <input id="token" name="token" class="form-control" value="{{laracvs('wx.token')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">域名：</label>
                            <div class="col-sm-8">
                                <input id="domin" placeholder="不带http://,例如:www.laracvs.com" name="domin" class="form-control" value="{{laracvs('wx.domin')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">被关注回复：</label>
                            <div class="col-sm-8">
                                <input id="gzresp" placeholder="" name="gzresp" class="form-control" value="{{laracvs('wx.gzresp')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">自定义图文描述：</label>
                            <div class="col-sm-8">
                                <input id="description" placeholder="" name="description" class="form-control" value="{{laracvs('wx.description')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">无资源时回复标题：</label>
                            <div class="col-sm-8">
                                <input id="title" placeholder="" name="title" class="form-control" value="{{laracvs('wx.title')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">无资源时回复图片：</label>
                            <div class="col-sm-8">
                                <input id="img" placeholder="" name="img" class="form-control" value="{{laracvs('wx.img')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">无资源时回复URL：</label>
                            <div class="col-sm-8">
                                <input id="img" placeholder="" name="url" class="form-control" value="{{laracvs('wx.url')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">短网址</label>
                            <div class="col-sm-8">
                                <select class="form-control m-b" id="shorturl" name="shorturl">
                                    <option value="1" {{laracvs('wx.shorturl')==1?'selected':""}}>开启</option>
                                    <option value="0" {{laracvs('wx.shorturl')==0?'selected':""}}>关闭</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" id="appkey" style="display: {{laracvs('wx.shorturl')==1?'':"none"}}">
                            <label class="col-sm-3 control-label">新浪开发者APP_KEY：</label>
                            <div class="col-sm-8">
                                <input id="app_key" placeholder="新浪开发者APP_KEY" name="app_key" class="form-control" value="{{laracvs('wx.app_key')}}" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">对接地址:</label>
                            <div class="col-sm-8">
                                <input  name="" readonly class="form-control" value="http://域名/laracvs_wechat" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button class="btn btn-primary"  id="tijiao" type="submit">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>

<!-- 全局js -->
<script src="{{laracvs_asset('admin/js/jquery.min.js?v=2.1.4')}}"></script>
<script src="{{laracvs_asset('admin/js/bootstrap.min.js?v=3.3.6')}}"></script>

<!-- 自定义js -->
<script src="{{laracvs_asset('admin/js/content.js?v=1.0.0')}}"></script>

<!-- jQuery Validation plugin javascript-->
<script src="{{laracvs_asset('admin/js/plugins/validate/jquery.validate.min.js')}}"></script>
<script src="{{laracvs_asset('admin/js/plugins/validate/messages_zh.min.js')}}"></script>
<script src="{{laracvs_asset('admin/js/plugins/layer/layer.min.js')}}"></script>

<script src="{{laracvs_asset('admin/js/demo/form-validate-demo.js')}}"></script>
<!--统计代码，可删除-->
<script>
    $(function () {
        $('#shorturl').change(function () {
            var short = $(this).val()
            if(short==1){
                $('#appkey').show();
            }else {
                $('#appkey').hide();
            }

        })

    })
</script>
</body>

</html>
